package com.xhu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data //get、set、toString等方法
@AllArgsConstructor//全参构造函数
@NoArgsConstructor//无参构造函数
@TableName("permission")//指定实体类表名
public class Permission {
    @TableId(value = "permission_id",type = IdType.AUTO)
    private Integer permissionId;
    private String permissionIcon;
    private String permissionIndex;
    private String label;
    private String permissionUrl;
    private Integer parentId;
    private Integer nodeId;
    @TableField(exist = false)
    private List<Permission> childrenList;
}
